package as.myapplication.holder;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;

import as.myapplication.R;
import as.myapplication.adapter.BaseAdapterLV;

/**
 * Created by liqm on 2017/7/6.
 */

public class DialogLVHolder extends BaseHolderLV{

    private TextView tv;

    public DialogLVHolder(Context context, ViewGroup parent, BaseAdapterLV adapter, int position, Object bean) {
        super(context, parent, adapter, position, bean);
    }

    @Override
    public View onCreateView(Context context, ViewGroup parent) {
        View view = LayoutInflater.from(context).inflate(R.layout.dialog_lv_item,null);
       tv = (TextView) view.findViewById(R.id.tv);
        return view;
    }

    @Override
    protected void onRefreshView(Object bean, int position) {
        tv.setText(adapter.listData.get(position).toString());
    }
}

